package cn.com.surker.sale.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 销售客户站点关联表
 * </p>
 *
 * @author admin
 * @since 2024-06-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class SaleClientOrg implements Serializable {

	private static final long serialVersionUID = 1L;

	public SaleClientOrg() {
	}

	public SaleClientOrg(Long clientId, Long orgId, String orgName, Long dsId, Integer status, String remark, String creater, Date createTime) {
		this.clientId = clientId;
		this.orgId = orgId;
		this.orgName = orgName;
		this.dsId = dsId;
		this.status = status;
		this.remark = remark;
		this.creater = creater;
		this.createTime = createTime;
	}

	public SaleClientOrg(Long erpId, Long clientId, Long orgId, String orgName, Long dsId, Integer status, String remark, String creater, Date createTime) {
		this.erpId = erpId;
		this.clientId = clientId;
		this.orgId = orgId;
		this.orgName = orgName;
		this.dsId = dsId;
		this.status = status;
		this.remark = remark;
		this.creater = creater;
		this.createTime = createTime;
	}

	/**
	 * 标识
	 */
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;

	/**
	 * 是否关联	0:未关联;1关联
	 */
	@TableField(exist = false)
	private Integer link;

	/**
	 * 关联的erpid
	 */
	private Long erpId;

	/**
	 * 客户ID
	 */
	private Long clientId;

	/**
	 * 公司ID
	 */
	private Long orgId;

	/**
	 * 公司
	 */
	private String orgName;

	/**
	 * 数据源ID
	 */
	private Long dsId;


	/**
	 * 状态(0:启用1：禁用)
	 */
	private Integer status;

	/**
	 * 审核备注，当审核结果为不通过时，必填
	 */
	private String remark;

	/**
	 * 创建人
	 */
	private String creater;

	/**
	 * 创建日期
	 */
	private Date createTime;

	/**
	 * 更新人
	 */
	private String updater;

	/**
	 * 更新日期
	 */
	private Date updateTime;


}
